function MinHeap() {
    this.data = []
}
MinHeap.prototype.push = function(value) {
    this.data.push(value);
}

MinHeap.prototype.pop = function() {
    this.data.sort((a, b) => b - a);
    return this.data.pop()
}